package Power;

import java.awt.Graphics;
import java.awt.event.KeyEvent;

import Constructions.Construction;
import Main.SpaceGame;

public abstract class Generator extends Construction
{
	SpaceGame main;
	int x,y;
	int nodesSupported;
	
	public Generator(int x, int y,SpaceGame main)
	{
		super(x,y,main);
		this.x = x;
		this.y = y;
		this.main = main;
	}
	
	@Override
	public abstract void draw(Graphics g);
	
	@Override
	public abstract void setText();

	@Override
	public void keyPressed(KeyEvent arg0) 
	{
		
	}

	@Override
	public void keyReleased(KeyEvent arg0) 
	{
		
	}

	@Override
	public void keyTyped(KeyEvent arg0) 
	{
		
	}

	@Override
	public abstract String getName(); 
	
	public int getNodesSupported()
	{
		return nodesSupported;
	}
}
